package com.haiwen.domain;

import java.util.Arrays;
import java.util.List;

public class User {
    /**
     * 用户-编号
     */
    private int id;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 活跃性
     */
    private boolean active;
    /**
     * 年龄
     */
    private Integer age;
    public User() {
    }
    public User(int id, String username, String password, boolean active,Integer age) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.active = active;
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", active=" + active +
                ", age=" + age +
                '}';
    }

    public static List<User> getUserList(){

        return Arrays.asList(
                new User(1,"wang","wang123",true,20),
                new User(1,"anl","anl123",false,19),
                new User(1,"jsncj","jsncj123",true,23),
                new User(1,"ijcdjc","ijcdjc123",true,28),
                new User(1,"sjcjs","sjcjs123",false,99),
                new User(1,"dhjvhd","dhjvhd123",true,20),
                new User(1,"hcjdc","hcjdc123",false,45),
                new User(1,"ytsyg","ytsyg123",true,30),
                new User(1,"gcygy","gcygy123",false,20));
    }
}
